'use strict';

module.exports = {
  up: async (queryInterface, Sequelize) => {

    await queryInterface.bulkInsert('Types', [
      {
        className: 'vue',
        classDesc: '这是vue分类',
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        className: 'react',
        classDesc: '这是react分类',
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        className: 'node',
        classDesc: '这是node分类',
        createdAt: new Date(),
        updatedAt: new Date()
      },
      {
        className: 'ui',
        classDesc: '这是ui分类',
        createdAt: new Date(),
        updatedAt: new Date()
      },
    ], {});
  },

  down: async (queryInterface, Sequelize) => {
    await queryInterface.bulkDelete('Types', null, {});
  }
};
